import { http } from "./axios";

export const get = (url , Authorization) => {
    return new Promise((resolve, reject) => {
        if(Authorization)
        http.get(url,{
            headers:{
                Authorization
            }
        }).then(res => {resolve(res)})
        else http.get(url).then(res=>{resolve(res)})
    })
}
